<template>
    <div>
        <van-row>
            <Hearders />
            <van-col span="4">
                <Left />
            </van-col>
            <van-col span="4">

                <ul>
                    <li></li>
                </ul>
            </van-col>
            <van-col span="16">
                {{work}}
                <ul>
                    <li></li>
                </ul>
            </van-col>
        </van-row>
    </div>
</template>

<script>
import Hearders from '../comm/hearders'
import Left from '../comm/left.vue'
import axios from '../../http/axios'
    export default {
        components: { Hearders ,Left}, 
        data() {
            return {
                work:[],
                userid:localStorage.getItem('userid')
            }
        },
        methods: {
            //获取任务
            getallwork(){
                axios('/users/workdeal/?userid='+this.userid,'get').then(res=>{
                    this.work = res.list
                })
            }
        },
        mounted() {
            this.getallwork()
        },
    }
</script>

<style scoped>

</style>